/**
 * 道具icon
 */
class Item extends BaseComp{
    private img_icon:eui.Image;
    private lb_cnt:eui.Label;
    constructor(data)
    {
        super('itemView', data);
    }

    public init()
    {
        
    }

    public initUI(award)
    {
        let info = ResourceUtil.instance().parseSignleAward(award);
        this.img_icon.source = info.itemIcon;
        this.lb_cnt.text = info.itemNum+'';
        this.img_icon.width = this.img_icon.height = 120;
    }

    public addEvent()
    {

    }

    public removeEvent()
    {

    }

    public clear()
    {
        super.clear();
    }
}

window['Item'] = Item;